package com.pactera.madp.cp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pactera.madp.cp.api.entity.WorkContactEntity;
import com.pactera.madp.cp.api.vo.contact.ContactPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface IWorkContactService extends IService<WorkContactEntity> {

    String getWXExternalUserid(int contactId);

    List<WorkContactEntity> getWorkContactsByCorpIdName(Integer corpId, String name,String clStr);

    WorkContactEntity getWorkContactsById(Integer contactId, String clStr);

    List<WorkContactEntity> getWorkContactsByCorpId(Integer corpId, String s);

    List<WorkContactEntity> getWorkContactByCorpIdWxExternalUserIds(Integer corpId, List<String> froms,List<String> tolists, String s);

    //WorkContactDailyResp contact(String end);

    WorkContactEntity getWorkContactByWxExternalUserId(String externalUserId);

    List<WorkContactEntity> selectAll(@Param("corpId") Integer corpId);

    Integer countByEmployeeIds(Set<Integer> employeeIds, Integer corpId, String start);

    List<ContactPageVO> getWorkContactsByDeptId(Integer deptId);

}
